package com.dimples.wxpush.constant;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

/**
 * @Author: wenqiaogang
 * @DateTime: 2022/8/23 12:51
 * @Description: 常量类，数据来自于application.yml的配置，在代码中使用
 */
@Setter
@Getter
@Component
@ConfigurationProperties(prefix = "wx.config")
public class ConfigConstant {
    @Value("${wx.config.appId}")
    private String appId;
    @Value("${wx.config.appSecret}")
    private String appSecret;
    @Value("${wx.config.templateId}")
    private String templateId;

    private ArrayList<String> openidList;

    @Value("${weather.config.appid}")
    private String weatherAppId;

    @Value("${weather.config.appSecret}")
    private String weatherAppSecret;
    @Value("${weather.config.city}")
    private String city;
    @Value("${weather.config.cityDesc}")
    private String cityDesc;
    @Value("${message.config.lunarSwitch}")
    private Boolean lunarSwitch;
    @Value("${message.config.togetherDate}")
    private String togetherDate;
    @Value("${message.config.birthday1}")
    private String birthday1;
    @Value("${message.config.birthday2}")
    private String birthday2;

    @Value("${message.config.message}")
    private String message;
    @Value("${ApiSpace.enableDaily}")
    private boolean enableDaily = true;
    @Value("${ApiSpace.token}")
    private String token;

    @Value("${youdao.appKey_YouDao}")
    private String appKey_YouDao;

    @Value("${youdao.appSecret_YouDao}")
    private String appSecret_YouDao;


}
